package com.bqdu.demo1.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bqdu.demo1.domain.SeckillCommodity;
import com.bqdu.demo1.mapper.SeckillCommodityMapper;
import com.bqdu.demo1.service.SeckillCommodityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class SeckillCommodityServiceImpl extends ServiceImpl<SeckillCommodityMapper, SeckillCommodity>
implements SeckillCommodityService{

    @Autowired
    private SeckillCommodityMapper seckillCommodityMapper;
    @Override
    public boolean reduceStock(Long id) {
        return seckillCommodityMapper.reduceStock(id);
    }
}




